﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeView.aspx.cs" Inherits="DataGrid_Binding_Northwind.TreeView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TreeView ID="TreeViewFood" runat="server" DataSourceID="FoodXmlSource"  OnSelectedNodeChanged="TreeViewFood_SelectedNodeChanged">
        <DataBindings>
            <asp:TreeNodeBinding TextField="#Name" ValueField="#InnerText" />
        </DataBindings>
    </asp:TreeView>
    <asp:XmlDataSource ID="FoodXmlSource" runat="server" DataFile="~/XmlFood.xml"></asp:XmlDataSource>
    <asp:Literal Text=" " ID="result" runat="server" />
    </form>
</body>
</html>
